<template>
  <div id="app">
    <transition name="page">
      <router-view class="ani-page" />
    </transition>
  </div>
</template>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
}
.ani-page {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: scroll;
}
.page-enter-active,
.page-leave-active {
  transition: all 1s;
}
.page-enter {
  transform: translateX(100%);
}
.page-leave-to {
  transform: translateX(-100%);
}
</style>
